<template>
  <div>
    <div>
      <h3>b组件：{{ ages }}</h3>
    </div>
  </div>
</template>
    
    <script>
import bus from "../../views/utils/bus";
export default {
  data() {
    return {
      ages: "",
    };
  },
  watch: {
    ages: {},
  },
  mounted() {
    bus.$on("sendAge", (e) => {
      console.log(e);
      this.ages = e;
    });
  },
};
</script>
    
    <style>
</style>